<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>list_the_TRs</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
  		<tr>
		  	<td><s:text name="Transaction" /></td>
		  	<td><s:text name="Service Contract" /></td>
		  	<td><s:text name="Create Date" /></td>
	  	</tr>
	    <s:iterator value ="transactionList"  status="stat" >
			<tr>
				<td>
					<a href="<s:url includeParams="none" namespace="/" action="user/details_transaction" >
		  					<s:param name="trId"><s:property value="trId" /></s:param></s:url>">
							<s:property value="trDescription" />
					</a><br>
				</td>
				<td>
					<s:property value="serviceContract.scDescription" />
				</td>
		  		<td>
		  			<s:text name="trlist.trDate" /><s:property value="trDate" />
		  		</td>
	  		</tr>
		</s:iterator>
	</table>
	</s:if>
  </body>
</html>
